package cn.taobaoke.restful.domain;

import org.springframework.data.jpa.repository.JpaRepository;

import java.util.Optional;

public interface DomainRepository extends JpaRepository<DomainEntity, Long> {

    Optional<DomainEntity> findByDomain(String domain);

    Optional<DomainEntity> findByUserDomain(String userDomain);
}
